package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the VISIT_TABLE database table.
 * 
 */
@Entity
@Table(name="VISIT_TABLE")
@NamedQuery(name="VisitTable.findAll", query="SELECT v FROM VisitTable v")
public class VisitTable implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String visitid;

	@Temporal(TemporalType.DATE)
	private Date leavetime;

	private String patientname6;

	private String visitname;

	private String visitrelation;

	@Temporal(TemporalType.DATE)
	private Date visittime;

	//bi-directional many-to-one association to LiveinrecordTable
	@ManyToOne
	@JoinColumn(name="LIVEID8")
	private LiveinrecordTable liveinrecordTable;

	public VisitTable() {
	}

	public String getVisitid() {
		return this.visitid;
	}

	public void setVisitid(String visitid) {
		this.visitid = visitid;
	}

	public Date getLeavetime() {
		return this.leavetime;
	}

	public void setLeavetime(Date leavetime) {
		this.leavetime = leavetime;
	}

	public String getPatientname6() {
		return this.patientname6;
	}

	public void setPatientname6(String patientname6) {
		this.patientname6 = patientname6;
	}

	public String getVisitname() {
		return this.visitname;
	}

	public void setVisitname(String visitname) {
		this.visitname = visitname;
	}

	public String getVisitrelation() {
		return this.visitrelation;
	}

	public void setVisitrelation(String visitrelation) {
		this.visitrelation = visitrelation;
	}

	public Date getVisittime() {
		return this.visittime;
	}

	public void setVisittime(Date visittime) {
		this.visittime = visittime;
	}

	public LiveinrecordTable getLiveinrecordTable() {
		return this.liveinrecordTable;
	}

	public void setLiveinrecordTable(LiveinrecordTable liveinrecordTable) {
		this.liveinrecordTable = liveinrecordTable;
	}

}